package com.quwan.app.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author quan
 * @date 2021-11-21 14:08
 */

@Data
@Accessors(chain = true)
public class EditPublishOrderDTO implements Serializable {

    private static final long serialVersionUID = -4267651662658372557L;
    @ApiModelProperty("订单id")
    private String publishOrderId;
    @ApiModelProperty("会员id")
    private String mId;
    @ApiModelProperty("价格")
    private String price;
    @ApiModelProperty("时间单位")
    private Integer unit;
    @ApiModelProperty("年龄限制 18-xxx")
    private String ageLimit;
    @ApiModelProperty("性别限制")
    private String genderLimit;
    @ApiModelProperty("图片url")
    private List<String> url;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("时间选择器(忽略timeSelector)")
    private List<TimeSelector> timeSelectors;

    public TimeSelector getTimeSelector() {
        return new TimeSelector();
    }

    @Data
    @Accessors(chain = true)
    public class TimeSelector {
        @ApiModelProperty("中文描述 周一 ~ 周日")
        private String weekStr;
        @ApiModelProperty("数字 1  -  7")
        private String weekNum;
        @ApiModelProperty("HH:mm")
        private String beginTime;
        @ApiModelProperty("HH:mm")
        private String endTIme;
    }

}
